/**
 * 工具
 */
const Tool = () => import('../view/tool/index.vue')
/**
 * 根路径
 */
const ToolRoot = () => import('../view/tool/root/index.vue')
/**
 * 图片识别
 */
const ToolImageFont = () => import('../view/tool/imageFont/index.vue')
/**
 * 本地图片识别
 */
const ToolImageFontLocal = () => import('../view/tool/imageFont/localImage.vue')
/**
 * 网络图片识别
 */
const ToolImageFontUrl = () => import('../view/tool/imageFont/urlImage.vue')
/**
 * 编码、加密列表
 */
const ToolEncode = () => import('../view/tool/encode/index.vue')
const ToolEncodeDetail = () => import('../view/tool/encode/detail.vue')
/**
 * 二维码
 */
const ToolQRCode = () => import('../view/tool/qrcode/index.vue')
/**
 * PDF
 */
const ToolPdf = () => import('../view/tool/pdf/index.vue')
/**
 * 个人相册
 */
const ToolPhoto = () => import('../view/tool/photo/index.vue')
/**
 * 个人相册添加图片
 */
const ToolPhotoAdd = () => import('../view/tool/photo/add.vue')
/**
 * 个人视频
 */
const ToolVideo = () => import('../view/tool/video/index.vue')

export default {
  path: '/tool',
  name: 'Tool',
  component: Tool,
  redirect: '/tool/root',
  children: [
    {
      path: 'root',
      name: 'ToolRoot',
      meta: {tabBar: true, tabBarIndex: 3},
      component: ToolRoot
    },
    {
      path: 'imagefont',
      name: 'ToolImageFont',
      component: ToolImageFont
    },
    {
      path: 'imagefont-local',
      name: 'ToolImageFontLocal',
      component: ToolImageFontLocal
    },
    {
      path: 'imagefont-url',
      name: 'ToolImageFontUrl',
      component: ToolImageFontUrl
    },
    {
      path: 'encode',
      name: 'ToolEncode',
      component: ToolEncode
    },
    {
      path: 'qrcode',
      name: 'ToolQRCode',
      component: ToolQRCode
    },
    {
      path: 'encode-detail',
      name: 'ToolEncodeDetail',
      component: ToolEncodeDetail
    },
    {
      path: 'pdf',
      name: 'ToolPdf',
      component: ToolPdf
    },
    {
      path: 'photo',
      name: 'ToolPhoto',
      component: ToolPhoto
    },
    {
      path: 'photo-add',
      name: 'ToolPhotoAdd',
      component: ToolPhotoAdd
    },
    {
      path: 'video',
      name: 'ToolVideo',
      component: ToolVideo
    }
  ]
}
